package com.hugedata.cdnserver.util;

public class Seed
{
    private String link;
    private String icp;

    public String getLink()
    {
        return link;
    }

    public void setLink(String link)
    {
        this.link = link;
    }

    public String getIcp()
    {
        return icp;
    }

    public void setIcp(String icp)
    {
        this.icp = icp;
    }

    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((icp == null) ? 0 : icp.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        Seed other = (Seed) obj;
        if (icp == null)
        {
            if (other.icp != null)
                return false;
        }
        else if (!icp.equals(other.icp))
            return false;
        return true;
    }

    @Override
    public String toString()
    {
        return link + "\t" + icp;
    }
}
